package cn.cvs.dao;

import cn.cvs.pojo.TSysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 用户的mapper接口
 * 用于执行用户表的  增删改查
 */
public interface SysUserMapper {
    Integer count();

    int updateUserPwd();

    List<TSysUser> getUserList();

    /**
     * 按姓名模糊查询
     * @return
     */
//    List<TSysUser> getUsersByRealName(@Param("rname") String  realName,@Param("userName") String useName);
    List<TSysUser> getUsersByRealName( String  realName);
    List<TSysUser> getUsersByPojo( TSysUser user);
    List<TSysUser> getUsersByMap(Map<String,Object> maps);
    List<TSysUser> getUserListWithRoleName(TSysUser user);

    //示例16 查询结果映射

    List<TSysUser> getUserListByRoleId(@Param("rid") Integer roleId);
    List<TSysUser> getUserAndAddressByUserId(@Param("uid") Integer userId);



}
